import subprocess

program_path = "Assembly-CPlusPlus.exe"
is_allow_login = True  # 可以根据需要改变这个值
argument = str(is_allow_login).lower()

try:
    result = subprocess.run([program_path, argument], check=True)
    print(f"进程退出代码: {result.returncode}")
except subprocess.CalledProcessError as e:
    print(f"无法启动程序: {e}")
except FileNotFoundError:
    print("程序路径不正确或程序不存在。")